package com.carey.download;

import java.util.ArrayList;
import java.util.List;

public class DownloadManager extends AbstractDownloadManager {

	private List<DownloadListenner> mListenners;

	public DownloadManager() {
		mListenners = new ArrayList<DownloadListenner>();
	}

	@Override
	public void addDownloadTask(DownloadTask task) {

	}

	@Override
	public void registerDownloadListenner(DownloadListenner listenner) {
		synchronized (mListenners) {
			mListenners.add(listenner);
		}
	}

	@Override
	public void unRegisterDownloadListenner(DownloadListenner listenner) {
		synchronized (mListenners) {
			mListenners.remove(mListenners);
		}
	}
}
